package SegmentTree;

import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;

//测试表示 一切正常
public class Test {
    public static void main(String[] args) {
        int test[]=new int[]{6,2,3,4,5,64,7,20,18,10};
        SegmentTree segmentTree=new SegmentTree(test);
        segmentTree.update(0,6,5);
        System.out.println(segmentTree.search(0,3,8));;

        Map<Integer,Integer> map=new HashMap<>();

        Iterator iterator=map.entrySet().iterator();
        while(iterator.hasNext())
        {
            Map.Entry<Integer,Integer>tmp= (Map.Entry<Integer, Integer>) iterator.next();

        }
    }
}
